//
//  mapViewController.swift
//  Reid
//
//  Created by Fizgrad Chen on 2022/5/3.
//

import UIKit
import WebKit

class mapViewController: UIViewController {

    @IBOutlet weak var flowmap: WKWebView!
    @IBOutlet weak var mapBar: UITabBarItem!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        mapBar.title = "热力地图"
        mapBar.image = UIImage(named: "hotmap")
        mapBar.selectedImage = UIImage(named: "hotmap")
        let myURL = Bundle.main.url(forResource: "热力地图", withExtension: "html")

        let request = URLRequest(url: myURL!)
        flowmap.load(request)
        flowmap.loadFileURL(myURL!, allowingReadAccessTo: Bundle.main.bundleURL)
        
        flowmap.contentMode = .scaleToFill
        // Do any additional setup after loading the view.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
